package com.yxinsur.imc.business.events.listener;


import com.yxinsur.imc.business.events.event.TenantCreateEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;


/**
 * 租户信息录入事件监听类
 */
@Component
public class TenantCreateEventListener implements ApplicationListener<TenantCreateEvent> {
    @Async
    @Override
    public void onApplicationEvent(TenantCreateEvent event) {
        System.out.println("租户信息录入成功：" + event.getTenant().toString()+",信息提示为:"+event.getMsg());
    }
}
